package models

type MachineInfo struct {
	HostName string `json:"HostName"`
	Ips []string `json:"Ips"`
	CpuInformation CpuInfo `json:"CpuInformation"`
}


type CpuInfo struct {
	PhysicalCnt int `json:"PhysicalCnt"`
	LogicalCnt int `json:"LogicalCnt"`
	ModelName string `json:"ModelName"`
}


type DockerCliInfo struct {
	CliVersion string `json:"CliVersion"`
	Platform string `json:"Platform"`
	DockerVersion string `json:"DockerVersion"`
	ImagesCount int `json:"ImagesCount"`
	ContainersCount int `json:"ContainersCount"`
	NetworksCount int `json:"NetworksCount"`
}


// ImageFormatResp 镜像响应值参数模型
type ImageFormatResp struct {
	Repository string `json:"Repository"`
	Tag string `json:"Tag"`
	ImageId string `json:"ImageId"`
	Created string `json:"Created"`
	Size string `json:"Size"`
}


type ContainerFormatResp struct {
	ContainerId string `json:"ContainerId"`
	Image string `json:"Image"`
	Command string `json:"Command"`
	Created string `json:"Created"`
	Status string `json:"Status"`
	Ports string  `json:"Ports"`
	Names string  `json:"Names"`
}


type NetworksFormatResp struct {
	NetworkId string `json:"NetworkId"`
	Name string `json:"Name"`
	Driver string `json:"Driver"`
	Scope string `json:"Scope"`
}


type SearchImageFormatResp struct {
	Name string `json:"Name"`
	Description string `json:"Description"`
	StarsCount int`json:"StarsCount"`
	IsOfficial string `json:"IsOfficial"`
}

type DockerChain struct {
	DownloadProcessChan chan int64
}